import request from '@/utils/request'

// 查询微信预抢订单列表
export function listExternalOrders(query) {
    return request({
        url: '/dashboard/preempt/wechatList',
        method: 'get',
        params: query
    })
}

// 查询微信预抢订单详细
export function getExternalOrders(id) {
    return request({
        url: '/dashboard/preempt/' + id,
        method: 'get'
    })
}

// 新增微信预抢订单
export function addExternalOrders(data) {
    return request({
        url: '/dashboard/preempt',
        method: 'post',
        data: data
    })
}

// 修改微信预抢订单
export function updateExternalOrders(data) {
    return request({
        url: '/dashboard/preempt',
        method: 'put',
        data: data
    })
}

// 删除微信预抢订单
export function delExternalOrders(ids) {
    return request({
        url: '/dashboard/preempt/' + ids,
        method: 'delete'
    })
}

// 提现申请
export function addWithdrawalApplication(data) {
    return request({
        url: '/dashboard/withdrawalApplication',
        method: 'post',
        data: data
    })
}

